You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.LogRamp Method
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.LogRamp Method

Compute a logarithmic ramp.

Syntax
C#
Visual Basic
public static void LogRamp([In] TVec RampVec, double StartPower, double StopPower);

Fills RampVec vector with (base 10) logarithmic scale values from StartPower to StopPower. The number of values returned is defined with RampVec.Length.

Compute 10 values of a logarithmic scale between powers of -1 and +1. 

 

using Dew.Math; using Dew.Math.Editors; using Dew.Math.Units; using Dew.Signal; using Dew.Signal.Units; using Dew.Math.Tee; using Dew.Signal.Tee; private void button1_Click(object sender, EventArgs e) { Vector RampVec = new Vector(10); SignalUtils.LogRamp(RampVec,-1,1); // RampVec = [0.1 0.1668 0.2782 0.4641 0.7742 // 1.2915 2.1544 3.5938 5.9948 10] MtxVecEdit.ViewValues(RampVec,"Logarithmic scale"); }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!